#include "stdlib.h"
#include <iostream>
#include "SDL.h"
#include "SDL_image.h"
#include "SDL_mixer.h"
#include <stdio.h>
#include <string>
#include <ctime>
#include <cstdlib>
#include "SDL_draw.h"
#include <cmath>
#include "house.h"
#include <Windows.h>
#include <list>
#include <string>
const int SCREEN_WIDTH = 526; 
const int SCREEN_HEIGHT = 526; 
const int SCREEN_BPP = 32; 


int main(int argc, char *argv[])
{

house* home = new house();

SDL_Quit();
Mix_CloseAudio();
 WIN32_FIND_DATA ffd;
HANDLE hFind = INVALID_HANDLE_VALUE;
   DWORD dwError=0;
 hFind = FindFirstFile("temp\\*", &ffd);
 std::list<std::string> files;
   if (INVALID_HANDLE_VALUE == hFind) 
   {
     RemoveDirectory(("temp"));
      return 0;
   } 
   
   do
   {
	   std::string t = ffd.cFileName;
	   files.push_back(t);


   }
   while (FindNextFile(hFind, &ffd) != 0);

   for (std::list<std::string>::iterator i = files.begin(); i != files.end();i++){
	   std::string temp = "temp\\";
	   temp.append(*i);
	   DeleteFile(temp.c_str());

   }


RemoveDirectory(("temp"));	
	
	return 0;
}